package com.JDK.Map;

import java.util.HashMap;

public class Threshold {

    public static void main(String[] args) {

        HashMap<User,Integer> map = new HashMap<>(65536);

        for(int i=0; i<65536; i++){
            User user = new User(i);
            map.put(user,i);
        }

        for(User user : map.keySet()){
            System.out.println(map.get(user));
        }
    }

    private static class User{

        int id;

        public User(int id) {
            this.id = id;
        }

        @Override
        public int hashCode() {
            return id;
        }
    }
}
